package com.dong.service.impl;

import com.dong.dao.VideoType1Mapper;
import com.dong.entitys.VideoType1;
import com.dong.service.VideoType1Service;
import com.dong.tools.DBTools;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class VideoType1ServiceImpl implements VideoType1Service {
    @Override
    public List<VideoType1> selectTypes() {
        SqlSession session = DBTools.getSession();
        VideoType1Mapper mapper = session.getMapper(VideoType1Mapper.class);
        List<VideoType1> videoType1s = mapper.selectTypes();
        return videoType1s;
    }
}
